//
// Created by 86176 on 2021/11/24.
//

#include <iostream>
#include "TailFilterChain.h"

bool TailFilterChain::getMessage(Session *pSession,IoBuffer* ioBuffer, Message *pMessage) {
    //过滤链尾巴的暂时未实现
    return true;
}

void TailFilterChain::PostMessageToIOHander(Session *session, Message *pMessage) {
    //std::cout<<"Iohander:"<<session->ioBuffer;
    //tempChain = dynamic_cast<TailFilterChain*>(tail);
    ioHandler->messageReceived(session, pMessage);
}

IoHandler *TailFilterChain::getIoHandler() const {
    return ioHandler;
}
